typedstream NXImage Object NXEPSImageRep NXImageRep iisssss [1076c]%!PS-Adobe-2.0 EPSF-2.0 %%Title: Rectangle.eps %%Creator: Ali Ozer %%CreationDate: Tue Aug 14 10:38:47 1990 %%Pages: 0 1 %%BoundingBox: 256 317 356 417 %%EndComments % This program draws a particular symmetric pattern. Plug in % xscaleAmount, yscaleAmount and rotateAmount with a % pleasing value given by RectSpinShow % adapted from Rectangles.eps from the demos directory % by Kevin Brain. May 1/1991 /numSteps 400 def /boxsize 100 def % original size was 200 % The drawing routine. % modified to use boxsize variable /drawbox { boxsize -.5 mul boxsize -.5 mul boxsize boxsize rectstroke } bind def % Come up towards the middle of a 8.5x11 (default) page 306 367 translate % Have thin lines (even when scaled; 0 linewidth % means "use the smallest line you can") 0 setlinewidth % Take numSteps steps from 1 to 0, drawing a % rectangle and altering the coordinate system % by the above values at every step... .4 1 numSteps div neg 0 { .5 add setgray % xscaleAmount yscaleAmount .99152 .99636 scale % rotateAmount -0.474 rotate drawbox } for %%EndFile